import LoginUser from '../pages/LoginUser.vue'
import BaseLayout from '../layouts/BaseLayout.vue'
import Clazz from '../pages/student/Clazz.vue'
import Index from '../pages/Index.vue'
import Course from '../pages/student/Course.vue'
import Grades from '../pages/student/Grades.vue'
import ChooseCourse from '../pages/student/ChooseCourse.vue'
import GradeEntry from '../pages/teacher/GradeEntry.vue'
import TeacherClazz from '../pages/teacher/TeacherClazz.vue'
import TeacherList from '../pages/teacher/TeacherList.vue'
import TeacherSchedule from '../pages/teacher/TeacherSchedule.vue'
import TeacherCondition from '../pages/teacher/TeacherCondition.vue'
import UserInfo from '../pages/UserInfo.vue'
import ManageStudent from "../pages/admin/ManageStudent.vue";
import ManageClazz from "../pages/admin/ManageClazz.vue";
import ManageTeacher from "../pages/admin/ManageTeacher.vue";
import ManageCourse from "../pages/admin/ManageCourse.vue";
import ManageCourseTable from "../pages/admin/ManageCourseTable.vue";



const routes = [
    { path: '/index', component: BaseLayout ,
        children:[
            { path: '/student/clazz', component: Clazz },
            { path: '/index', component: Index },
            { path: '/student/course', component: Course },
            { path: '/student/grades', component: Grades },
            { path: '/userInfo', component: UserInfo },
            { path: '/student/chooseCourse', component: ChooseCourse },


            { path: '/teacher/grades', component: GradeEntry },
            { path: '/teacher/condition', component: TeacherCondition },
            { path: '/teacher/clazz', component: TeacherClazz },
            { path: '/teacher/list', component: TeacherList },
            { path: '/teacher/schedule', component: TeacherSchedule },


            { path: '/admin/student', component: ManageStudent },
            { path: '/admin/clazz', component: ManageClazz},
            { path: '/admin/teacher', component: ManageTeacher},
            { path: '/admin/course', component: ManageCourse },
            { path: '/admin/courseTable', component: ManageCourseTable },
        ]},
    { path: '/', component: LoginUser },

]


export default routes;
